<script>
	import Vue from 'vue';
	export default {
		onLaunch: function() {
			console.log('App Launch');
			uni.getSystemInfo({
				success: e => {
					console.log('getSystemInfo', e.safeAreaInsets.bottom);
					// 状态栏高度px bs13
					Vue.prototype.safebottom = e.safeAreaInsets.bottom;
					Vue.prototype.statusHeight = e.statusBarHeight;
					Vue.prototype.screenHeight = e.screenHeight;
					Vue.prototype.screenWidth = e.screenWidth;
					Vue.prototype.platform = e.platform;
					Vue.prototype.widthRatio = e.screenWidth / 750;
				}
			});
			// #ifdef MP
			// uni.setEnableDebug({
			// 	enableDebug: false
			// });
			// #endif
		},
		onShow: function() {
			console.log('App Show');
		},
		onHide: function() {
			console.log('App Hide');
		}
	};
</script>

<style lang="scss">
	// 全局CSS样式在这里引入
	@import "@/uni_modules/uview-ui/index.scss";
	@import '/common/css/common.css';

	page {
		--safe-area-inset-top: 0px;
		--safe-area-inset-right: 0px;
		--safe-area-inset-bottom: 30rpx;
		--safe-area-inset-left: 0px;


	}

	@supports (top: constant(safe-area-inset-top)) {
		page {
			--safe-area-inset-top: constant(safe-area-inset-top);
			--safe-area-inset-right: constant(safe-area-inset-right);
			--safe-area-inset-bottom: constant(safe-area-inset-bottom);
			--safe-area-inset-left: constant(safe-area-inset-left);
		}

	}

	@supports (top: env(safe-area-inset-top)) {
		page {
			--safe-area-inset-top: env(safe-area-inset-top);
			--safe-area-inset-right: env(safe-area-inset-right);
			--safe-area-inset-bottom: env(safe-area-inset-bottom);
			--safe-area-inset-left: env(safe-area-inset-left);
		}
	}
</style>